<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="../bootstrap/js/jquery-1.7.2.js"></script>
<!-- js文件 -->
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../js/easyui-lang-zh_CN.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="../bootstrap/js/bootstrap.min.js"></script>
<!-- 为了确保适当的绘制和触屏缩放-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改个人密码</title>
</head>
<script type="text/javascript">
    //判断两次输入的新密码是否一致
    $(function(){
    	$("#newpsw2").blur(function(){
    		var  newpsw1 = $("#newpsw1").val();
    		var  newpsw2 = $(this).val();
    		if(newpsw1==newpsw2){
    			 $("span").text("");
    		     $("form").attr("onsubmit","return true");
    		}else{
    			 var sp=$("span").text("请确保2次密码一致");
    			 sp.css({"color":"red","font-size":"10px" });
    			 $("form").attr("onsubmit","return false");
    		}
    	});
    });
</script>
<body>
<div class="container">
		<div class="row">
			<div class="col-md-5 col-md-offset-4">
				<div class="updatepswForm" style="margin-top: 100px">
					<form class="form-horizontal"  action="updatepsw"  method="post" onsubmit="return false">
						<div class="form-group">
							<label for="oldpsw" class="col-sm-2 control-label">原密码</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="oldpsw" name="oldpsw"
									placeholder="请输入原密码">
							</div>
						</div>
						<div class="form-group">
							<label for="newtpsw1" class="col-sm-2 control-label">新密码</label>
							<div class="col-sm-10">
								<input type="password" class="form-control" id="newpsw1"  name="newpsw1"
									placeholder="请输入新密码" ">
							</div>
						</div>
						<div class="form-group">
							<label for="newtpsw2" class="col-sm-2 control-label">确认新密码</label>
							<div class="col-sm-10">
								<input type="password" class="form-control" id="newpsw2"  name="newpsw2"
									placeholder="请确认新密码" ">
									<span></span>
							</div>
						</div>
						<h4>${Msg}</h4>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<input type="submit" class="btn btn-default" id="updatepsw" value="提交"/>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>